#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPropertyAnimation>
#include <QMouseEvent>
#include <QPoint>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    void setShadow(bool flag);
    void showNormal();
    void showMaximized();

public slots:
    void close();

protected:
    QPoint position;
    bool isPress;
    QPropertyAnimation* anim;
    void effect(float startValue, float endValue, int time);

private:
    Ui::MainWindow *ui;

private slots:
    void closeMainWindow();
};

#endif // MAINWINDOW_H
